<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>v-model基本使用</title>
</head>
<body>

<div id="app">
  <h2>v-model语法糖</h2>
  <input type="text" v-model="message">
  <h2>相当于v-bind 和v-on </h2>
  <input type="text" :value="message" @input="message = $event.target.value">
  <h2>{{message}}</h2>
</div>
<script src="../js/vue.js"></script>
<script>
  const app = new Vue({
    el: '#app',
    data: {
      message: '你好'
    }
  })
</script>
</body>
</html>
